package Chapter07.Homework.H20211022.Work03;

public class Cat extends Pet{

    private float weight;

    public Cat() {
    }

    public float getWeight() {
        return weight;
    }

    public void setWeight(float weight) {
        this.weight = weight;
    }

    public Cat(String name, int age){
        super(name,age);
    }

    public void zhua(){
        System.out.println("猫抓住了老鼠，咬死！");
    }
}
